package com.ruoyi.yijing.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户信息TOKEN对象 customer_info_account_token
 * 
 * @author ruoyi
 * @date 2024-02-03
 */
public class CustomerInfoAccountToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long tokenId;

    /** 会员ID */
    @Excel(name = "会员ID")
    private Long customerUid;

    /** 账号ID */
    @Excel(name = "账号ID")
    private Long customerAccountUid;

    /** 存取token */
    @Excel(name = "存取token")
    private String accessToken;

    /** 客户端ip */
    @Excel(name = "客户端ip")
    private String clientIp;

    /** 私钥 */
    @Excel(name = "私钥")
    private String secretKey;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private String dataStatus;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    /** open ID */
    @Excel(name = "open ID")
    private String openId;

    /** 平台ID */
    @Excel(name = "平台ID")
    private String platformUid;

    /** 登录平台,同账号表的来源 */
    @Excel(name = "登录平台,同账号表的来源")
    private String sourcePort;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 修改人名称 */
    @Excel(name = "修改人名称")
    private String updateName;

    public void setTokenId(Long tokenId) 
    {
        this.tokenId = tokenId;
    }

    public Long getTokenId() 
    {
        return tokenId;
    }
    public void setCustomerUid(Long customerUid) 
    {
        this.customerUid = customerUid;
    }

    public Long getCustomerUid() 
    {
        return customerUid;
    }
    public void setCustomerAccountUid(Long customerAccountUid) 
    {
        this.customerAccountUid = customerAccountUid;
    }

    public Long getCustomerAccountUid() 
    {
        return customerAccountUid;
    }
    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }
    public void setClientIp(String clientIp) 
    {
        this.clientIp = clientIp;
    }

    public String getClientIp() 
    {
        return clientIp;
    }
    public void setSecretKey(String secretKey) 
    {
        this.secretKey = secretKey;
    }

    public String getSecretKey() 
    {
        return secretKey;
    }
    public void setDataStatus(String dataStatus) 
    {
        this.dataStatus = dataStatus;
    }

    public String getDataStatus() 
    {
        return dataStatus;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setPlatformUid(String platformUid)
    {
        this.platformUid = platformUid;
    }

    public String getPlatformUid()
    {
        return platformUid;
    }
    public void setSourcePort(String sourcePort) 
    {
        this.sourcePort = sourcePort;
    }

    public String getSourcePort() 
    {
        return sourcePort;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tokenId", getTokenId())
            .append("customerUid", getCustomerUid())
            .append("customerAccountUid", getCustomerAccountUid())
            .append("accessToken", getAccessToken())
            .append("clientIp", getClientIp())
            .append("secretKey", getSecretKey())
            .append("dataStatus", getDataStatus())
            .append("expireTime", getExpireTime())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("openId", getOpenId())
            .append("platformUid", getPlatformUid())
            .append("sourcePort", getSourcePort())
            .append("createName", getCreateName())
            .append("updateName", getUpdateName())
            .toString();
    }
}
